#! /bin/bash

ab_dir=/usr/sbin
factor=10
url="http://$1$2"

users=1
requests=10
for (( i = 1; i <= 10; i++ ))
do
    requests=`expr $factor \\* $i`
    $ab_dir/ab -n $requests -c $users $url
    #echo $requests
done  

users=5
requests=10
for (( i = 1; i <= 10; i++ ))
do
    requests=`expr $factor \\* $i`
    $ab_dir/ab -n $requests -c $users $url
    #echo $requests
done  

users=10
requests=10
for (( i = 1; i <= 10; i++ ))
do
    requests=`expr $factor \\* $i`
    $ab_dir/ab -n $requests -c $users $url
    #echo $requests
done  
